﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类DEV_MaintenanceRecord
     ///</summary>
     public class DEV_MaintenanceRecord
     {
         private int __ID=0 ;
         private string __JCXH=string.Empty ;
         private string __DevName=string.Empty ;
         private string __DevFaultComponent=string.Empty ;
         private string __DevMaintenanceMode=string.Empty ;
         private string __DevFaultDescription=string.Empty ;
         private string __DevMaintenanceTime=string.Empty ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public DEV_MaintenanceRecord()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("JCXH",false);
             this.__Changed.Add("DevName",false);
             this.__Changed.Add("DevFaultComponent",false);
             this.__Changed.Add("DevMaintenanceMode",false);
             this.__Changed.Add("DevFaultDescription",false);
             this.__Changed.Add("DevMaintenanceTime",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID =0;
             this.__JCXH =string.Empty;
             this.__DevName =string.Empty;
             this.__DevFaultComponent =string.Empty;
             this.__DevMaintenanceMode =string.Empty;
             this.__DevFaultDescription =string.Empty;
             this.__DevMaintenanceTime =string.Empty;
             this.__Changed["ID"] = false;
             this.__Changed["JCXH"] = false;
             this.__Changed["DevName"] = false;
             this.__Changed["DevFaultComponent"] = false;
             this.__Changed["DevMaintenanceMode"] = false;
             this.__Changed["DevFaultDescription"] = false;
             this.__Changed["DevMaintenanceTime"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[JCXH]的数据
         /// </summary>
         public string JCXH
         {
              set{ __JCXH = value.Replace("'","’"); __Changed["JCXH"] = true;}
              get{return __JCXH;}
         }
         /// <summary>
         ///设置或获取类中的[DevName]的数据
         /// </summary>
         public string DevName
         {
              set{ __DevName = value.Replace("'","’"); __Changed["DevName"] = true;}
              get{return __DevName;}
         }
         /// <summary>
         ///设置或获取类中的[DevFaultComponent]的数据
         /// </summary>
         public string DevFaultComponent
         {
              set{ __DevFaultComponent = value.Replace("'","’"); __Changed["DevFaultComponent"] = true;}
              get{return __DevFaultComponent;}
         }
         /// <summary>
         ///设置或获取类中的[DevMaintenanceMode]的数据
         /// </summary>
         public string DevMaintenanceMode
         {
              set{ __DevMaintenanceMode = value.Replace("'","’"); __Changed["DevMaintenanceMode"] = true;}
              get{return __DevMaintenanceMode;}
         }
         /// <summary>
         ///设置或获取类中的[DevFaultDescription]的数据
         /// </summary>
         public string DevFaultDescription
         {
              set{ __DevFaultDescription = value.Replace("'","’"); __Changed["DevFaultDescription"] = true;}
              get{return __DevFaultDescription;}
         }
         /// <summary>
         ///设置或获取类中的[DevMaintenanceTime]的数据
         /// </summary>
         public string DevMaintenanceTime
         {
              set{ __DevMaintenanceTime = value.Replace("'","’"); __Changed["DevMaintenanceTime"] = true;}
              get{return __DevMaintenanceTime;}
         }
    }
}
